import router from "@system.router";

export default {
    data: {
        title: "World",
        // 顶部栏
        username: "阿伟",
        num: 4,
        // 底部菜单栏
        menuData: [
            {
                imgSrc: "common/images_bottom_menu_bar/home.png",
                imgSrcActive: "common/images_bottom_menu_bar/home_active.png",
                title: "首页",
            },
            {
                imgSrc: "common/images_bottom_menu_bar/scenarios.png",
                imgSrcActive:
                    "common/images_bottom_menu_bar/scenarios_active.png",
                title: "场景",
            },
            {
                imgSrc: "common/images_bottom_menu_bar/message.png",
                imgSrcActive:
                    "common/images_bottom_menu_bar/message_active.png",
                title: "消息",
            },
            {
                imgSrc: "common/images_bottom_menu_bar/mine.png",
                imgSrcActive: "common/images_bottom_menu_bar/mine_active.png",
                title: "我的",
            },
        ],
        defaultIndex: 0,

        gcolor: "#9C9C9C",
    },

    bottomNavigationBarClick(num) {
        this.defaultIndex = num;
    },
    cut() {
        router.push({
            uri: "pages/add_device/add_device",
        });
    },
};
